package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.DataDictionaryItem;
import cn.wolfcode.crm.query.DictionaryQueryObject;

import java.util.List;

public interface IDataDictionaryItemService {

    List<DataDictionaryItem> selectAll(DictionaryQueryObject qo);

    /**
     * 验证名称
     * @param id
     * @param name
     * @return
     */
    Boolean selectByName(Long id, String name);


    void saveOrUpdate(DataDictionaryItem dataDictionaryItem);

    void delete(Long id);

}
